import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { SysLogQuery, SysLogPageResult, SysLogForm } from './types';

/**
 * 获取操作日志分页数据
 *
 * @param queryParams
 */
export function getSysLogPage(
  queryParams?: SysLogQuery
) {
  return request({
    url: '/api/sys/sysLog/list',
    method: 'post',
    data: queryParams
  });
}

/**
 * 删除
 *
 * @param id
 */
export function deleteSyslog(id: number) {
  return request({
    url: '/api/sys/sysLog/delete',
    method: 'post',
    data: {
      id: id
    }
  });
}
